package org.yefei.homeworkday06;

public class Preview {

	public static void main(String[] args) {
		// 预习作业：定义一个数组，求 他们的和并输出
		int[] nums = { 1, 4, 5, 6, 8 };
		int sum = 0;
		for (int i = 0; i < nums.length; i++) {
			sum += nums[i];
		}
		System.out.println(sum);
	}

}
